﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FreedomERP.Comm.Utils
{
    public class DateUtils
    {
        public static DateTime GetCurDate()
        {
            return DateTime.Now;
        }

        public static string GetCurDateFormat(string format)
        {
            return DateTime.Now.ToString(format);
        }

        public static DateTime ParseStringToDateTime(string dateStr)
        {
            return DateTime.Parse(dateStr);
        }

        public static string FormatDate(DateTime date, string format)
        {
            return date.ToString(format);
        }
    }
}